home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Snippets / Networking / Get Ethernet Address / GetEAddr.r < prev    next >
Encoding:
Text File  |  1992-07-15  |  1.5 KB  |  97 lines  |  [TEXT/MPS ]

  1. /*
  2.     File: GetEAddr.r
  3.     Rich Kubota
  4.     DTS
  5.     June 2, 1992
  6.     
  7.     Resource file for sample program to demonstrate the use of the LAP Manager to determine the
  8.     current AppleTalk connection device based on the ADEV resource ID.  Also 
  9.     demonstrates a call to EGetInfo to obtain the burned in Ethernet address
  10.     whether on the card or built-in on the Quadra's.  This program assumes the 
  11.     use of the Apple Ethernet phase 1 0r 2 driver ADEV's.
  12.     
  13. */
  14.  
  15. #include "Types.r"
  16.  
  17. resource 'ALRT' (1000) {
  18.     {40, 40, 203, 278},
  19.     1000,
  20.     {    /* array: 4 elements */
  21.         /* [1] */
  22.         OK, visible, sound1,
  23.         /* [2] */
  24.         OK, visible, sound1,
  25.         /* [3] */
  26.         OK, visible, sound1,
  27.         /* [4] */
  28.         OK, visible, sound1
  29.     }
  30. };
  31.  
  32. resource 'ALRT' (1001) {
  33.     {40, 40, 117, 335},
  34.     1001,
  35.     {    /* array: 4 elements */
  36.         /* [1] */
  37.         OK, visible, sound1,
  38.         /* [2] */
  39.         OK, visible, sound1,
  40.         /* [3] */
  41.         OK, visible, sound1,
  42.         /* [4] */
  43.         OK, visible, sound1
  44.     }
  45. };
  46.  
  47. resource 'DLOG' (1000) {
  48.     {40, 40, 240, 280},
  49.     dBoxProc,
  50.     visible,
  51.     goAway,
  52.     0x0,
  53.     1000,
  54.     ""
  55. };
  56.  
  57. resource 'DITL' (1000) {
  58.     {    /* array DITLarray: 2 elements */
  59.         /* [1] */
  60.         {124, 92, 144, 150},
  61.         Button {
  62.             enabled,
  63.             "OK"
  64.         },
  65.         /* [2] */
  66.         {7, 7, 112, 232},
  67.         StaticText {
  68.             disabled,
  69.             "^0"
  70.         }
  71.     }
  72. };
  73.  
  74. resource 'DITL' (1001) {
  75.     {    /* array DITLarray: 3 elements */
  76.         /* [1] */
  77.         {44, 194, 65, 278},
  78.         Button {
  79.             enabled,
  80.             "Done"
  81.         },
  82.         /* [2] */
  83.         {6, 9, 24, 146},
  84.         StaticText {
  85.             disabled,
  86.             "Ethernet Address is:"
  87.         },
  88.         /* [3] */
  89.         {6, 149, 24, 286},
  90.         StaticText {
  91.             disabled,
  92.             "^0"
  93.         }
  94.     }
  95. };
  96.  
  97.